package com.work.demo.file;

import cn.hutool.core.io.FileUtil;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpUtil;

public class FileUtils1 {


    public static void main(String[] args) {
        String filePath = "C:\\Users\\admin\\Documents\\WXWork\\1688851079825408\\Cache\\File\\2021-11\\40万80f_x.csv";

        HttpRequest post = HttpUtil.createPost("http://localhost:9092/v1/connect/computing/task/test");

        String res = post.body(FileUtil.readBytes(filePath)).header("Content-Type", "text/plain").execute().body();
        System.out.println(res);
    }
}
